<?php

namespace CMBUBank\UBank\Request\TransManager;

use CMBUBank\UBank\Request\UBankBaseRequest;
use CMBUBank\UBank\Response\TransManager\TransManagerSubunitWhiteListResponse;

class TransManagerSubunitWhiteListRequest extends UBankBaseRequest
{
    protected $code = 'NTDUMRLQ';

    protected $response = TransManagerSubunitWhiteListResponse::class;

    protected $logTip = '查询记账子单元付方白名单信息';

    private $backNo;

    private $account;

    private $page;

    public function generate(): array
    {
        return [
            'ntdumrlqx1' => [
                'bbknbr' => $this->backNo,
                'accnbr' => $this->account,
                'rltacc' => $this->page,
            ],
        ];
    }

    public function setBackNo($backNo): void
    {
        $this->backNo = $backNo;
    }

    public function setAccount($account): void
    {
        $this->account = $account;
    }

    public function setPage($page): void
    {
        $this->page = $page;
    }
}